// components/sj-exambar/sj-exambar.js
const App = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    title:{
      type:String,
      value:""
    },
    num:{
      type:Number,
      value:0
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    navHeight: App.globalData.navHeight,
  },

  /**
   * 组件的方法列表
   */  
  methods: {
    gohome(){
 
      if(this.properties.num==1){
          wx.navigateTo({
            url: '/pages/examadmin/pages/examhome/examhome',
          })
      }
       if(this.properties.num==2){
        wx.navigateTo({
          url: '/pages/examadmin/pages/onlinemodify/onlinemodify',
        })
      }
      if(this.properties.num==3){
        
        wx.navigateBack({ 
          delta: 1
        });
      }
      
    }
  }
})
